import React from "react";

interface propType{   //类组件属性接口
    foo:string
}

interface stateType{
    hobby:Array<string>
    age:number
}

class Product extends React.Component<propType,stateType>{
    name:string
    constructor(props:any){
        super(props)
        console.log(props)
        this.name='哈哈'
        this.state={
            hobby:['asd','asda','asd'],
            age:20
        }
    }
    render(){
        return (
            <fieldset>
                <legend>项目</legend>
                <div>项目</div>
            </fieldset>
        )
    }
}
export default Product